/*
PearReview - The peer review assistant.
Copyright (C) 2009  Dimitrij Pankratz, Anton Musichin
http://www.pearreview.com, info@pearreview.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

package com.pearreview.util.review;

import java.net.URI;
import java.util.List;

public class Finding extends AbstractIdItem {
	
	private static final long serialVersionUID = -2605685796820798336L;
	
	private String description;
	private Severity severity;
	private List<String> references;
	private List<String> aspects;
	private List<URI> externalReferences;
	
	public Finding() {
		super();
	}

	public void setDescription(String description) {
		this.description = description;
	}
	public String getDescription() {
		return description;
	}
	
	public void setSeverity(Severity severity) {
		this.severity = severity;
	}
	public Severity getSeverity() {
		return severity;
	}
	
	public void setReferences(List<String> references) {
		this.references = references;
	}
	public List<String> getReferences() {
		return references;
	}
	
	public void setAspects(List<String> aspects) {
		this.aspects = aspects;
	}
	public List<String> getAspects() {
		return aspects;
	}
	
	public void setExternalReferences(List<URI> externalReferences) {
		this.externalReferences = externalReferences;
	}
	public List<URI> getExternalReferences() {
		return externalReferences;
	}	
	
	@Override
	public String toString() {
		return "[id: " + getId() + ", "
				+ "description: " + getDescription() + ", "
				+ "severity: " + getSeverity() + ", "
				+ "references: " + getReferences() + ", "
				+ "aspects: " + getAspects() + ", "
				+ "external references: " + getExternalReferences() + "]";
	}
}
